import http from "./http";

// 获取目录内容
export const getDocDetail = (id) => http.get(`/api/docs/${id}`);

// 创建文档
export const createDocs = (data) => http.post("/api/docs", data);

// 修改文档信息
export const updateDocs = (id, data) => http.patch(`/api/docs/${id}`, data);

// 删除文档
export const removeDocsById = (id) => http.delete(`/api/docs/${id}`);
